package client;
import client.DeveComInfo_GUI;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.naming.ConfigurationException;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.awt.Font;

public class DeveComWorker_3_GUI extends JDialog {

	private final JPanel contentPanel = new JPanel();

	/**
	 * Launch the application.
	 *//*
	public static void main(String[] args) {
		try {
			DeveComWorker_3_GUI dialog = new DeveComWorker_3_GUI();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public DeveComWorker_3_GUI() {
		setTitle("\u7BA1\u7406\u8005");
		setModalityType(ModalityType.APPLICATION_MODAL);
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		contentPanel.setLayout(null);
		{
			JButton button = new JButton("\u6295\u8D44\u66F4\u65B0\u7814\u7A76\u8BBE\u5907\uFF0C\u6539\u5584\u5F00\u53D1\u6548\u7387");
			button.setFont(new Font("宋体", Font.PLAIN, 15));
			button.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					dispose();
					DeveEquip_GUI dialog=new DeveEquip_GUI();
					dialog.setLocationRelativeTo(null);
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.setVisible(true);
					
				}
			});
			button.setBounds(84, 144, 264, 40);
			contentPanel.add(button);
		}
		{
			JButton button = new JButton("\u67E5\u770B\u516C\u53F8\u57FA\u672C\u4FE1\u606F");
			button.setFont(new Font("宋体", Font.PLAIN, 15));
			button.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					DeveComInfo_GUI dialog;
					try {
						dispose();
						dialog = new DeveComInfo_GUI();
						dialog.setLocationRelativeTo(null);
						dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
						dialog.setVisible(true);
					} catch (ConfigurationException e1) {
						e1.printStackTrace();
					} catch (RemoteException e1) {
						e1.printStackTrace();
					} catch (MalformedURLException e1) {
						e1.printStackTrace();
					} catch (NotBoundException e1) {
						e1.printStackTrace();
					}
					
					
				}
			});
			button.setBounds(84, 58, 264, 46);
			contentPanel.add(button);
		}
		{
			JButton button = new JButton("下班 ");
			button.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent arg0) {
					dispose();
				}
			});
			button.setBounds(307, 206, 84, 30);
			contentPanel.add(button);
		}
		
	}

}
